package io;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

public class PWDemo2 {
    public static void main(String[] args) throws Exception{
        FileOutputStream fos = new FileOutputStream("pw2.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
        BufferedWriter bw =new BufferedWriter(osw);
        PrintWriter pw = new PrintWriter(bw);

        pw.println("Nihao");
        pw.println("ckajsh");
        pw.close();
    }
}
